package de.riceman.simpleGo.view.views.visualizationView;



/**
 * @author reismade
 *
 * @version $Revision$
 */
public class Timer {
	long t;
	long elapsed;
	

	public Timer() {
		reset();
	}

	public void start() {
		t = System.currentTimeMillis();
	}
	
	public void stop() {
		elapsed += System.currentTimeMillis() - t;
	}
	
	public void reset() {
		elapsed = 0;
	}
	
	public String getElapsedTime() {
		return String.valueOf(System.currentTimeMillis() - t);
	}
	
	public String getTimeAfterRun() {
		return String.valueOf(elapsed);
	}
	
	public long getElapsed() {
		
		return elapsed;
	}
}

